<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/12 0012
 * Time: 下午 7:00
 */
header('Content-type:text/html;charset=utf-8');
$link = mysql_connect('localhost','root','123456');
if (!$link){
    die('连接数据库失败！'.mysql_error());
}
mysql_query('set names utf8');
mysql_query('use `itcast`');
$sql = 'select * form `emp_info`';
$result = mysql_query($sql,$link);
$emp_info = array();
while ($row = mysql_fetch_assoc($res)){
    $emp_info[]= $row;
}
define('APP','itcast');
require './list_html.php';
